//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.come.mouslisten;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import org.come.Jpanel.LingbaoCardJpanel;

public class ChoseLingbaoTypeMouslisten implements MouseListener {
	private LingbaoCardJpanel lingbaoCardJpanel;
	private String type;

	public ChoseLingbaoTypeMouslisten(String type, LingbaoCardJpanel lingbaoCardJpanel) {
		this.type = type;
		this.lingbaoCardJpanel = lingbaoCardJpanel;
	}

	@Override
    public void mouseClicked(MouseEvent e) {
	}

	@Override
    public void mousePressed(MouseEvent e) {
		if ("灵宝装备".equals(this.type)) {
			LingFaFanYeMouslisten.shijian = true;
			this.lingbaoCardJpanel.getCar().show(this.lingbaoCardJpanel, "l1");
		} else if ("灵宝属性".equals(this.type)) {
			LingFaFanYeMouslisten.shijian = false;
			this.lingbaoCardJpanel.getCar().show(this.lingbaoCardJpanel, "l2");
		}

	}

	@Override
    public void mouseReleased(MouseEvent e) {
	}

	@Override
    public void mouseEntered(MouseEvent e) {
	}

	@Override
    public void mouseExited(MouseEvent e) {
	}
}
